package com.scc.接口;

import com.scc.抽象类.Animal;

public class Person extends Animal{
	
	public int age = 1;
	private String name;
	
	public void testPAge() {
		System.out.println("person age : " + age);
	}
	
	
	public static void testStatic() {
		System.out.println("Person -- testStatic");
	}
	
	public String getName() {
		return name;
	}
	
	public void celebrateBirthday() {
		System.out.println("celebrate" + name + "birthday");
	}
	
	@Override
	protected double run() {
		System.out.println("Person");
		
		return 10.0;
	}
	
	@Override
	public void sleep() {
		
		
	}
	
	public void eat(Eatable e) {
		System.out.println(e.breakfast());
	}
	
	public static double testMethodRefrece() {
		return 0.001;
	}
	
	
}
